<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <script type="text/javascript">
        function f1(n1,n2){
            if((typeof n1)!==int ||(typeof n2)!==int){
                console.log("参数不正确")
            }
            else
                return n1+n2
        }
        f1(2,"sd")
    </script>
</head>
<body>

</body>
</html>